package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 退款表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "refund")
public class Refund implements Serializable {
    /**
     * 退款编号
     */
    @TableId(value = "refund_no", type = IdType.INPUT)
    private Integer refundNo;

    /**
     * 退款账户
     */
    @TableField(value = "refund_account")
    private String refundAccount;

    /**
     * 退款方式
     */
    @TableField(value = "refund_method")
    private String refundMethod;

    /**
     * 退款金额
     */
    @TableField(value = "refund_amount")
    private BigDecimal refundAmount;

    /**
     * 退款抹零
     */
    @TableField(value = "refund_reset")
    private BigDecimal refundReset;

    /**
     * 关联id
     */
    @TableField(value = "correlation_id")
    private Integer correlationId;

    /**
     * 1采购订单预付退款 2采购入库付款退款 3销售订单预收退款
     */
    @TableField(value = "correlation_option")
    private Integer correlationOption;

    private static final long serialVersionUID = 1L;
}